package com.qf.pojo;

import java.util.Date;

/**
 * @author 高圆圆
 * @date 2022/12/26 14:56
 * 用户实体
 */
public class User {
    /**
     *
     uid    varchar(32) NOT NULL
     username   varchar(20) NULL
     password   varchar(32) NULL
     name   varchar(20) NULL
     email  varchar(30) NULL
     telephone  varchar(20) NULL
     birthday   date NULL
     sex    varchar(10) NULL
     state  int(11) NULL
     code   varchar(64) NULL
     */
    private String uid  ; //后面通过前台用户注册 :uid可以通过UUID产生随机数
    private String username  ;//昵称
    private String password ; //密码
    private String name ; //真实姓名
    private String email ; //邮箱
    private String telephone ; //电话
    private Date birthday ;//出生日期
    private String sex ; //性别
    private int state ; //用户激活状态 0未激活 1激活
    private String code ; //用户的激活码

    public User() {
    }

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    @Override
    public String toString() {
        return "User{" +
                "uid='" + uid + '\'' +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", name='" + name + '\'' +
                ", email='" + email + '\'' +
                ", telephone='" + telephone + '\'' +
                ", birthday=" + birthday +
                ", sex='" + sex + '\'' +
                ", state=" + state +
                ", code='" + code + '\'' +
                '}';
    }
}
